chore(deps): update all-dependencies (major) - #38
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
2 times, most recently
from
May 14, 2026 13:36
4173ed1 to
0650814
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
4 times, most recently
from
May 21, 2026 14:43
79b4dc8 to
49c03f0
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
5 times, most recently
from
May 28, 2026 19:56
c24db8a to
6abb64d
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
3 times, most recently
from
June 5, 2026 09:55
1e309cd to
f152c6c
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
4 times, most recently
from
June 15, 2026 01:38
526b773 to
f8027f8
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
2 times, most recently
from
June 21, 2026 14:01
59bc87c to
cfc6709
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
2 times, most recently
from
July 3, 2026 14:38
75b72d6 to
3f8d43f
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
2 times, most recently
from
July 12, 2026 23:13
d683855 to
a47ca48
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
5 times, most recently
from
July 21, 2026 18:42
73e2e24 to
cc7e7ff
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
4 times, most recently
from
August 27, 2026 16:56
2049e57 to
d92ff51
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
8 times, most recently
from
September 6, 2026 01:58
a7ff020 to
5dced32
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
7 times, most recently
from
September 11, 2026 18:25
89b3a29 to
bcafd14
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
3 times, most recently
from
September 18, 2026 20:09
6f59f6b to
9c7eae2
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
4 times, most recently
from
September 25, 2026 20:38
f84a7f2 to
1014c0d
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
2 times, most recently
from
October 1, 2026 17:32
b08137f to
bb3de08
Compare
renovate
Bot
force-pushed
the
renovate/major-all-dependencies
branch
from
October 1, 2026 22:03
bb3de08 to
1e322ea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.6.1→2.3.03.8.0→5.0.010.32.1→12.8.1Release Notes
suzuki-shunsuke/pinact (pinact)
v5.0.0Compare Source
Upgrade Guide
🤖 pinact is now AI friendly
v5 is about coding agents. An agent that is asked about pinact, or that hits a pinact error in CI, has until now had to answer from its training data, from the source code, or from whichever version of the website it happened to land on. v5 gives it three things so that it answers from the pinact that is actually installed:
#1708 An Agent Skill
#1708
pinact docs: the documentation, embedded in the binary#1705
pinact json-schema: the JSON Schema of the configuration file, embedded in the binaryAn Agent Skill
The skill carries no documentation of its own, deliberately. It is installed separately from the binary, so anything copied into it would go stale, and an agent would confidently describe a flag or an error code of a version that isn't the one on the machine. Instead the skill tells the agent to run
pinact docs listandpinact docs show <name>before answering, so the answer always comes from the installed pinact and the skill and the binary can never disagree about a version.It adds only the few things an agent gets wrong unless it is told: that
pinact runedits files and--checkis the way to look without touching them, that--updatechanges which version a workflow uses, and that the exit codes 1 and 2 are findings rather than pinact failing.pinact docsThe documents are embedded in the binary, so there is nothing to fetch. An agent doesn't need network access to read them, doesn't have to guess which branch or tag of the repository to read, and cannot land on the documentation of a version other than the one it is being asked about.
docs listreports a description of every document, written to name the symptoms a reader arrives with, so an agent can pick the one document it needs instead of reading them all.The README is split into documents so that the binary ships them:
--update,--min-age,--no-api, SARIF,--diff-file, and the access token used to exist only in the README, which the binary doesn't ship, and they are exactly the things an agent asks about.pinact docs listnow lists 21 documents instead of 12, and the README goes from 431 lines to 169, keeping what someone reads to decide whether to use pinact.The command is only useful to an agent that knows it exists, and an agent arrives at pinact through one of three places, so all three say so.
pinact --helpsays it in the root command's description, every error pinact reports carries the hint as thehelpattribute, andpinact -vlogs it:Checking the version is often the only pinact command an agent runs before it starts answering, so without this it never learns that the documentation is there. The hint goes to stderr as a log rather than to stdout, so it doesn't break a script that parses the version, and it is logged at the info level, so
--log-level warnsilences it. The routine outcomes ofpinact runare unaffected: the exit codes 1, 2, and 3 are unchanged, and nothing is logged for them.pinact json-schema$ pinact json-schema > pinact.jsonThe schema is embedded in the binary too, so it is the schema of the configuration that the running version accepts. An agent writing or reviewing a
.pinact.yamlcan read the exact set of fields, their types, and which ones are required, rather than inferring them from an example it has seen. The copy served from GitHub, which the existingyaml-language-servercomments point at, describes whatevermainor the pinned tag holds instead.#1707 makes that schema worth reading: every field is now described, including
version,files[].pattern,ignore_actions[].name, andignore_actions[].ref, which had no description at all.Editors such as VSCode use the same schema to complete the configuration file and to warn about invalid settings.
#1704 The CLI is built with spf13/cobra instead of urfave/cli
The commands, the flags, and their behavior are unchanged, but a long flag must now be written with two dashes.
urfave/cli accepted a long flag with a single dash. cobra's flag parser does not: a single dash introduces short flags, and
-cis the short flag of--config, so-checkwould otherwise be read as--config=heckand pinact would silently look for a configuration file namedheck. To prevent that, pinact rejects a single-dash long flag with an error naming the form to use:Short flags are unchanged and can still be written with a single dash:
--verifyand--sepalso keep working, as aliases of--verify-commentand--separator.The migration fixes two urfave/cli bugs that pinact ran into:
helpcould not be passed topinact run: the argument was taken as a request for the help ofrun.--ran the command instead of completing it (urfave/cli#1993). Sincepinact runfixes files by default, a TAB pressed while typing apinact run --command line rewrote the workflow files then and there. cobra completes through a separate hidden command that never reaches the action.cobra also brings its own
completioncommand, sopinact completion bash|zsh|fish|powershellgenerates a completion script.#1704 The Go module path is now
github.com/suzuki-shunsuke/pinact/v5This affects anyone importing pinact as a library, and
go install. Installing the CLI from a release asset or via aqua is unaffected.#1708 Documents under
docs/are renamed with underscoresdocs/why-pinact-not-pin.mdbecomesdocs/why_pinact_not_pin.md, so a link to the old path from outside this repository breaks. The README is also split into documents, so links to the section anchors that moved, such as#update-actions--update, now land on the README rather than on the section.Fixes
#1707 Describe every configuration field in the JSON Schema, and correct
requiredmin_agewas required by the schema, so every configuration file without it was reported as invalid. That is fixed, andversion,ignore_actions[].ref, andrules[].conditions, which pinact does require, are now marked required. The description offilesis also no longer truncated at a comma.Dependency Updates
#1689 #1711 Update Go to v1.27.1
#1681 Update module github.com/suzuki-shunsuke/ghtkn-go-sdk to v0.6.1
#1713 Update module github.com/google/go-github/v90 to v91
#1715 Update module golang.org/x/oauth2 to v0.37.0
v4.1.1Compare Source
Dependency Updates
#1634 Update Go to v1.26.5
#1659 Update module github.com/suzuki-shunsuke/ghtkn-go-sdk to v0.5.0
#1622 Update module github.com/urfave/cli/v3 to v3.10.1
#1633 Update module github.com/google/go-github/v88 to v89
#1646 Update dependency sigstore/cosign to v3.1.2
#1653 Update dependency anchore/syft to v1.49.0
#1657 Update dependency goreleaser/goreleaser to v2.17.1
v4.1.0Compare Source
Features
#1578 Update ghtkn-go-sdk to v0.3.0 for backend and disable device flow support
v4.0.0Compare Source
#1540 Removed the
-reviewoptionOutput SARIF and pass it to reviewdog. This has been announced previously.
pinact run -format sarif | reviewdog -f sarif -name pinact -reporter github-pr-review#1540 Always output diff
Even if you specify
-diff=false, it is ignored.#1540
-diffand-checkare now aliases for-fix=falseThis simplifies the logic, making it easier to understand and less prone to bugs.
#1540
-verifyis now an alias for--verify-comment-verifywas unclear about what was being verified, so it has been renamed for clarity.However,
-verifyis kept as-is to maintain backward compatibility.#1458 #1558 Version comments are now required @ManuelLerchnerQC
For SHAs without a version comment, pinact automatically adds a version comment (validation error if
-fix=false).Specifying a version comment makes it easier to see which version is being used, and makes it easier for tools like Renovate and Dependabot to update.
It also has security implications.
For GitHub Actions versions, you can also specify the SHA of a commit in a fork.
This means it could point to a malicious commit in a fork.
If you specify only the SHA without a version comment, you cannot tell whether it is the SHA of a commit in a fork.
By requiring version comments, you can verify that the version comment matches the SHA using the
--verify-commentoption.Even if a fake version comment is added to a fork's SHA, it can be detected by
--verify-comment.An attacker could also create a tag pointing to a fork's SHA, but creating a tag requires write permission, which raises the bar for attacks, so this can be said to improve security.
Of course, this is only meaningful if you verify with
--verify-comment, so it is recommended to run pinact with--verify-commentin CI.Features
#1540
-no-api: support for offline validation#1540 You can now check whether the version being used satisfies min age, not just newer versions
#1540 More flexible min age support via
rules#1540 #1542 #1543 Support for a global configuration file
#1435 Automatic correction of version comments via
-verify-comment@ManuelLerchnerQC#1547 #1552 #1557 #1562
-diff-file: limit pinact's targets to only the changed lines-no-api: support for offline validationIf you just want to check whether something is pinned, you don't really need to use the GitHub API, but previously the GitHub API was called.
With the
-no-apioption, you can validate without calling the GitHub API.However, since API calls are currently essential for fixing code (this may change in the future if caching is supported), you need to specify either
-fix=falseor-format sarif.Implicitly treating it as
-fix=falsecould cause behavior to change and become a breaking change when caching is supported, so it must currently be specified explicitly.You can now check whether the version being used satisfies min age, not just newer versions
For example, you can run it in CI against modified lines to check whether any dangerous versions that do not satisfy min age are being used.
This is not checked by default, but is checked when you run
pinact run --verify-min-ageorpinact run -min-age <min age>.More flexible min age support via
rulesmin age can now be configured in the configuration file.
Additionally, by using
rules, you can apply settings such as min age to specific actions.For rules, conditions are evaluated per rule, and the settings are applied if matched.
You can write multiple conditions, and the settings are applied if any one of the conditions matches.
exprfollows https://expr-lang.org/docs/language-definition. Please read the documentation for details.The settings of rules listed later in
rulestake precedence.Support for a global configuration file
A global configuration file is now supported.
The file path is searched in the following order of priority:
$PINACT_GLOBAL_CONFIG${XDG_CONFIG_HOME}/pinact/pinact.yaml${HOME}/.config/pinact/pinact.yamlOn Windows:
$PINACT_GLOBAL_CONFIG%APPDATA%\pinact\pinact.yamlrules are prepended before the rules in the project configuration file.
So project settings take precedence over global settings.
Automatic correction of version comments via
-verify-commentIf the SHA and the version comment do not match, the version comment is automatically corrected to match the SHA.
Previously, it would just return an error, but now it is automatically corrected.
-diff-file: limit pinact's targets to only the changed linesIf you specify a file in Unified Diff Format via
-diff-file, you can limit pinact's targets to only the changed lines.By passing the PR's diff file in PR CI, you can reduce unnecessary API calls and prevent corrections or errors from code unrelated to the PR's changes.
This makes it easier to introduce pinact via Required Workflow across an entire GitHub Organization of a large development organization.
To improve the overall health of a development organization, it is desirable to introduce pinact via Required Workflow.
However, if you suddenly introduce pinact as a Required Workflow in an Organization that has a lot of originally unpinned code, errors and corrections unrelated to the PR's changes will occur everywhere, causing confusion.
When errors occur in places unrelated to the PR's changes, the PR author thinks "what is this error?", "wait, do I have to fix this? It's unrelated to this PR so I want to split the PR, but creating a PR is a hassle."
It is also possible that the same error occurs in multiple PRs, and each one independently performs redundant fixing work.
Inquiries about errors come in from various teams, generating unnecessary costs.
If you try to fix everything before introducing the Required Workflow, it takes time to introduce, and during that time the bad situation continues where new unpinned code keeps increasing.
On the other hand, if you can fix and validate only the lines changed in a PR, the PR author can more easily accept making the fix, and there is no need to split the PR.
However, this alone does not pin existing code, so in parallel with this, you still need to run pinact against each repository and create PRs.
How do you generate the file specified by
-diff-file? You can easily generate it using the action https://github.com/suzuki-shunsuke/pr-unified-diff-action.v3.10.1Compare Source
🐛 Bug Fixes
#1535 pin uses lines with multiple spaces after the YAML list dash
v3.10.0Compare Source
Features
#1530 Support pinning branches to latest stable tags by the
--branch-to-tagoptionThe default behabiour isn't changed.
By default, pinact doesn't pin branches such as main or master.
If you want to pin specific branches, you can use the --branch-to-tag option.
e.g.
v3.9.2Compare Source
Fixes
#1493 Preserve original line endings when updating workflows
v3.9.1Compare Source
v3.9.0Compare Source
Features
#1365 Make version separator configurable via configuration file @ReenigneArcher
#1372 Make version separator configurable via command line option and environment variable
🐛 Bug Fixes
#1359 Fix a bug that
-log-colordoesn't workOthers
pnpm/pnpm (pnpm)
v12.8.1: pnpm 12.8.1Compare Source
pnpm 12.8.1 fixes
pnpm install --frozen-lockfilerejecting lockfiles with injected workspace packages that have peers, restores the executable bit on files of local directory dependencies, makespnpm dedupeconverge, and uses less CPU on many-core machines.Patch Changes
pnpm install --frozen-lockfileno longer rejects a freshly generated lockfile when an injected workspace package has peer dependencies #16332.Executable files in a
file:directory dependency or an injected workspace package keep their executable bit again. Since 12.8.0, pnpm installed these files without the permissions they have in their project.pnpm dedupenow reaches a stable lockfile when a package's peer suffix is long enough to be hashed. Before, each run could switch that package's key between the hashed and the spelled-out suffix, sopnpm dedupe --checkalways failed #16331.pnpm install --frozen-lockfile, the default in CI, now uses less CPU on machines with more than 8 cores. Warm installs on many-core Windows machines got up to 10% faster. Frozen installs now link with at most 16 worker threads.verifyDepsBeforeRunno longer reports dependencies as outdated after a filtered install just becausepnpm-lock.yamlhas a newer modification time. It checks the lockfile against the packages that install put in place. Before,pnpm runreinstalled the whole workspace with lifecycle scripts on, for example after a DockerCOPYbrought in a lockfile with a newer mtime #16322.After a filtered install,
verifyDepsBeforeRunnow also checks that the install put the selected projects' dependencies in place. Anode_modulesdirectory alone no longer counts as proof.pnpm runandpnpm execno longer install a project that has never been installed and has nothing to install. Such a project declares no dependencies, no peer dependencies thatautoInstallPeerswould fetch, and no install lifecycle scripts. The command now runs without writingnode_modulesorpnpm-lock.yaml#16313.pnpm update -g --latestnow upgrades globally installed packages beyond their saved version ranges #16320.Platinum Sponsors
Gold Sponsors
v12.8.0: pnpm 12.8Compare Source
pnpm 12.8.0 warns when
pnpm packorpnpm publishwould ship a.envfile thatfilesdoes not list, installssharedWorkspaceLockfile: falseworkspaces concurrently, applies every setting passed as--config.<name>=<value>, and no longer leaves the Windows terminal stuck after Ctrl+C in a script.Minor Changes
pnpm packandpnpm publishnow warn when the tarball includes a.envor.env.*file that thefilesfield ofpackage.jsondoes not list. Templates such as.env.exampleare not reported. List the file infilesto publish it on purpose, or exclude it in.npmignoreor.gitignore#7826.pnpm packnow honors--silent,--reporter=silent, and--loglevel=silentto hide the tarball contents and summary. With--json, lifecycle script output and the final JSON output remain visible #10297.Patch Changes
Installing packages
Installing through a
pnprserver now records the pnpmfile checksum in the lockfile, so a laterpnpm install --frozen-lockfileaccepts that lockfile #14460. A frozen install through the pnpr server now fails if the pnpmfile changed. If the pnpmfile defines areadPackage,afterAllResolvedorpreResolutionhook or custom resolvers, pnpm resolves dependencies locally and prints a warning that the pnpr server was not used.Installing through a
pnprserver also links a workspace project at the directory itspublishConfig.directorynames. A server that does not forward the setting makes the install fail withERR_PNPM_PNPR_PUBLISH_DIRECTORY_MISMATCH, so pnpm never writes a lockfile that points at the wrong directory. The server rejects apublishConfig.directorythat points outside its project.Installing a git-hosted dependency that has to be built no longer fails when that dependency's own dependencies have build scripts nobody approved. pnpm skips those builds while preparing the dependency, as it does without
strictDepBuilds#9764.A git-hosted dependency that is a pnpm workspace with no committed lockfile is now detected as a pnpm project #14011.
pnpm install --devandpnpm fetch --devnow install the optional dependencies of devDependencies, such as the platform binaries of Biome and oxlint. The project's ownoptionalDependenciesare still skipped #9678.pnpm install --offlineandpnpm add --offlinenow resolve a version range to the newest matching version whose tarball is already in the store. They used to pick the newest version in the cached metadata and fail withERR_PNPM_NO_OFFLINE_TARBALLwhen its tarball was missing #10715.If an offline install fails because the registry metadata cache uses the layout from before pnpm 11.27 and 12.4, the error now names the older mirror on disk and explains that one online install repopulates the cache. The error also carries the
ERR_PNPM_NO_OFFLINE_METAcode.pnpm cache prune --helpnow says that pnpm 11.26 and earlier, and pnpm 12.3 and earlier, depend on the directories it removes #15656.Running
pnpm installnow refreshes dependencies when a package declared with a localfile:directory changes its dependencies #4623.A repeat
pnpm installnow keeps its fast up-to-date check when an override replaces a declared localfile:dependency #12892.pnpm installnow removes an optional dependency fromnode_modulesif its install script fails. Code that checks whether the package is installed no longer finds a package that cannot load #8756.With
nodeLinker: hoisted,pnpm installnow restores a workspace project'snode_modulesafter it was deleted. Before, the install printed "Already up to date" and left the project without the dependencies nested under it. On Windows, the install also no longer fails with "Access is denied" when another project's copy of a shared dependency links to the deleted directory.Under
nodeLinker: hoisted,pnpm installnow clears orphaned package directories that an interrupted or failed install leaves in a project'snode_modules. A directory recorded by the previous install is removed, while an unrecorded directory is moved tonode_modules/.ignored. A copy already in.ignoredis never overwritten #13676.Concurrent installs no longer fail when they replace the same stale hoisted dependency link. Virtual store cleanup now keeps the temporary lockfiles that concurrent installs write.
Resolving and linking dependencies
pnpm installno longer aborts on a failed allocation of many gigabytes when peer dependency ranges combine overlapping||alternatives #15867.pnpm installno longer fails when a package from the registry declares afile:dependency on a directory inside itself, such as"@types/css-tree": "file:./typings/css-tree". pnpm links that dependency to the directory inside the package, as npm and Yarn do. The lockfile records it aslink:<root>/typings/css-tree#9141.An
npm:alias written byoverridesnow stays in place when a change elsewhere makes pnpm re-resolve the aliased dependency. Before, pnpm could look up the alias name at the aliased version, which failed withERR_PNPM_NO_MATCHING_VERSIONor locked an unrelated package #16309.A peer dependency no longer resolves to two different versions for one package. This happened when the package peer-depends on another package and on one of that package's peers, and it is installed deeper than a direct dependency of the package that provides them #12098.
An optional peer dependency is no longer resolved from another workspace project's package when the project provides one of that package's own peers at a version it rejects. This avoids bogus unmet peer errors #13989.
pnpm dedupeno longer changes the lockfile on every run when a nested peer dependency is provided through an npm alias #15709.With
resolutionMode: time-basedandminimumReleaseAgeboth set,pnpm installno longer reports a subdependency as too new when only the time-based cutoff excludes it. Such subdependencies used to fail a strict install withERR_PNPM_NO_MATURE_MATCHING_VERSION, or were added tominimumReleaseAgeExclude#13569. A transitive dependency that has no matching version published before the time-based cutoff now resolves to the lowest matching version allowed byminimumReleaseAge. pnpm picks a version younger thanminimumReleaseAgeonly if no older version matches #16298.pnpm installretries registry metadata fetches that fail with a timeout, a dropped connection, or an interrupted response body before it appliestrustPolicyorminimumReleaseAge. A transient fetch failure is not reported asTRUST_DOWNGRADEorMINIMUM_RELEASE_AGE_VIOLATION#12031.pnpm's built-in package compatibility database no longer applies to a project's own manifest. A project named like a published package, such as
vue-loader, no longer gains dependencies onpnpm installorpnpm update. User-configuredpackageExtensionsstill apply to project manifests #11700.Packages in an external
virtualStoreDircan resolve the project's direct dependencies selected byhoistPattern. Runpnpm install --forceto repair an existing installation #5652.pnpm installnow links the executables of auto-installed peer dependencies into the workspace root'snode_modules/.bin, including after a frozen-lockfile reinstall #8511.Lockfiles and frozen installs
pnpm install --frozen-lockfilenow works on a detached HEAD whengitBranchLockfileis enabled. The install reads the lockfiles of the local and remote-tracking branches that contain the checked-out commit. It still writes the sharedpnpm-lock.yaml#7672.pnpm install --frozen-lockfilenow accepts a lockfile that has no importer entry for a workspace package without dependencies. Such a package added after the lockfile was written made the install fail withERR_PNPM_PACKAGE_MANAGER_NO_IMPORTER#15875.pnpm installnow fails withERR_PNPM_LOCKFILE_MISSING_DEPENDENCYwhen an importer references a dependency version that has no snapshot entry. Before, the install succeeded and left anode_modulessymlink pointing at a missing virtual-store directory #14764.pnpm installon CI now fails on an outdated lockfile whenpreferFrozenLockfileis explicitly set totrue. Setting it totrueused to let CI update the lockfile #9072.With
gitBranchLockfileenabled, each emoji or other character outside the Basic Multilingual Plane in a branch name now becomes!!in the lockfile name. Before, each such character became one!.Workspaces and filtering
pnpm installin a workspace withsharedWorkspaceLockfile: falsenow installs projects concurrently, up toworkspaceConcurrencyat a time #14480. A project is resolved, fetched, and written to its virtual store without waiting for the workspace projects it depends on. It waits for them only before it links its dependencies and runs its lifecycle scripts, so its scripts still run after theirs. A project with apreinstallorpnpm:devPreinstallscript, or with an injected orfile:workspace dependency, waits for its workspace dependencies before it starts.The installs of the projects also share their package metadata, lockfile verification, and store caches, so they use less CPU and memory when several projects depend on the same packages. An install with a pnpmfile no longer starts an extra Node.js process when the pnpmfile has no
preResolutionhook.With
enableGlobalVirtualStoreandsharedWorkspaceLockfile: false, each project now keeps its current lockfile and its hidden hoisted dependencies in its ownnode_modules/.pnpm. Before, every project wrote them to the workspace root'snode_modules/.pnpm, so each repeat install treated the other projects' packages as its own and relinked them #14480.pnpm rebuild,pnpm approve-builds, andpnpm ignored-buildsnow work on the current project'snode_moduleswhen they run inside a project of a workspace withsharedWorkspaceLockfile: false. They used to read the workspace root'snode_modules, sopnpm rebuilddid not rebuild the project's dependencies and created a second virtual store at the workspace root #9402.pnpm installno longer creates anode_modulessymlink inside thepublishConfig.directoryof a workspace package linked withlinkDirectory. A build tool that cleaned its output directory through that symlink deleted the files of the package's dependencies.pnpm installalso removes a symlink that an earlier install left there #16226. It also no longer fails withERR_PNPM_CMD_SHIM_RESOLVE_PATHwhen such a package has abinfield and itspublishConfig.directorydoes not exist yet.pnpm installno longer fails for an injected workspace dependency whose package publishes from apublishConfig.directorythat its ownpreparescript builds. The injected copy now picks up that directory oncepreparefinishes building it.pnpm install --frozen-lockfileno longer reports the dependency as outdated while the directory has not been built yet #7811.An in-place edit to the source of an injected workspace package now shows up in its injected copy, unless a build writes to that package or
packageImportMethodis set. pnpm hardlinks such packages under the default import method #4410. Scripts listed insyncInjectedDepsAfterScriptsnow update injected dependencies while they run, so a watcher on the injected package, such as a dev server, sees each change before the script exits.With
sharedWorkspaceLockfile: false, an injected workspace package that has lifecycle scripts is now hard linked into the projects that depend on it. Before, pnpm left a plain copy, so later edits to the package did not reach those projects #9828.injectWorkspacePackagesnow hard links a workspace dependency declared with a relative path, such asworkspace:../foo, the same way it already does forworkspace:*#10446.Workspace discovery prunes dot-prefixed directories, so a
packagespattern such as**no longer matches projects inside.cacheand other hidden directories #16250.pnpm importin a workspace now keeps the versions pinned by ayarn.lockinside a workspace project #4385.Store and caches
Files imported from the store now follow the umask of the install that writes them. Installing with a umask of
077no longer leaves imported files readable by the group and others #3807.pnpm installkeeps the owner, group, and mode of files already in a shared store, includingindex.db. New store files and directories inherit the store directory's group-write bit. When that directory is setgid, new files inherit its group. pnpm does not change a file's owner or group #12765.When
pnpm installrepairs a store file that was modified through a hard link innode_modules, the repair now keeps the file's inode on Linux and macOS, so hard-linked copies in other projects are healed at the same time. On Windows the repair still replaces the file, so other projects are healed on their next install #3445.pnpm installnow reports a full store at once when writing package files fails. It no longer retries the tarball #8581.pnpm now warns when it cannot hard link packages from an existing store in the pnpm home directory and falls back to a store on the project's filesystem. This can happen when the project is on another filesystem, such as a bind-mounted workspace in a container. The warning names both stores and suggests setting
storeDir#14505.The side-effects cache now restores the symlinks that a build script creates inside a package. A warm install used to replace each of them with a copy of its target #12859.
After upgrading, every package with a build script is built once more.
The global virtual store and the side-effects cache now key built packages by the Node.js version that the root project's
devEngines.runtimeorengines.runtimepins. That is the Node.js their build scripts run with. A dependency that declares its ownengines.runtimeno longer changes the key for every other package.With
enableGlobalVirtualStore, an install into a freshnode_modulesno longer runs the build scripts of a dependency whose global virtual store slot an earlier install already built.pnpm rebuildstill runs them #14480.Concurrent installs that share a global virtual store now run a package's build in its shared slot one at a time. A failed build leaves the slot in place and marks it for the next install to rebuild #15568.
A warm
pnpm installreuses on-disk package metadata for five minutes when the registry does not send an ETag. Registries that send an ETag, including the public npm registry, still revalidate with a conditional request.pnpm updatestill fetches current metadata #13976.pnpm no longer revalidates cached registry metadata when the registry sends
Cache-Control: max-age=0,no-cache, orno-store. It downloads the metadata again, so a version newly published to such a registry is visible on the next install #13487.pnpm installhonorsCache-Controlfor dependencies named with anhttp:orhttps:tarball URL. A fresh response is taken from the store with no request, and a stale one is revalidated withIf-None-Match#15648.Patched dependencies
pnpm installnow repairs apnpm-lock.yamlwhose(patch_hash=<hash>)dependency paths disagree with itspatchedDependenciesmap, including paths that lack the hash their patch calls for. Before, pnpm accepted such a lockfile as up to date and kept the old patched files.pnpm install --frozen-lockfilenow fails on such a lockfile withERR_PNPM_INCONSISTENT_PATCH_HASH. It fails withERR_PNPM_UNCHECKABLE_PATCH_HASHwhen a patch hash in the lockfile is malformed, or when the lockfile lacks the package version or patch entry that the check needs #15336.pnpm installwithnodeLinker: hoistednow applies a patch once to each copy of a patched dependency in a workspace. Before, a copy that several workspace projects shared could receive the patch twice and end up with the patched content duplicated #7565.pnpm installandpnpm fetchnow fail withERR_PNPM_PATCH_NOT_FOUNDwhen a patch file listed inpatchedDependenciesdoes not exist #5268.engineStrictnow checks the patchedpackage.jsonwhen apatchedDependenciesentry changesengines. A patch that relaxesengines.nodeno longer fails the install against the published range #9603.pnpm patchnow applies the existing patch file to the edit directory of a git-hosted dependency, as it already does for packages from the registry #9699.Adding, updating, and removing dependencies
pnpm add <dir>now warns when the added directory declares peer dependencies, aspnpm linkdoes. The directory is saved as alink:dependency, and its peers are not resolved from the project that adds it. Use thefile:protocol to have them resolved #5523.pnpm add --save-typesno longer adds a@types/*package whose resolved version is deprecated. DefinitelyTyped publishes such stubs for packages that ship their own types, such as@types/typescriptfortypescript#15636.pnpm version,pnpm add, andpnpm pkg setkeep JSON5 style when they updatepackage.json5. ASCII identifier keys stay unquoted, strings keep JSON5 quotes, and indented files keep trailing commas #15717.Running scripts and commands
pnpm runandpnpm execno longer install dependencies automatically when the rootpackage.jsonstill keepsoverrides,packageExtensions,patchedDependencies, orignoredOptionalDependenciesin itspnpmfield. pnpm no longer reads that field, so the install rewrote the lockfile without those settings. The command now fails and asks to move the settings topnpm-workspace.yaml#16278.When
verifyDepsBeforeRuntriggers an install before a filteredpnpm runorpnpm exec, pnpm now installs only the selected projects and their dependencies. A later filtered command also installs a selected project that an earlier filtered install skipped #11865.pnpm -r run /regexp/now honors thetasksdependsOndeclared for each script the selector matches, like running the script by name does. Matched scripts that depend on each other run in order. Each matched script runs once #15596.pnpm runexits with the code of a script that handles Ctrl+C and shuts down. A script that finished cleanly is not reported as a lifecycle failure. The commands after it in the same script still run #9945.pnpm no longer hangs after a lifecycle script exits while a process it started in the background keeps the script's output open. pnpm stops reading that output one second after the script exits #5730.
pnpm runand lifecycle scripts use the configuredscriptShell, including Git Bash on Windows, whenshellEmulatoris also enabled.shellEmulatorstill runs scripts whenscriptShellis not set. Extra arguments passed topnpm runare quoted for the shell that runs the script, so a Windows path stays intact #14719.With
enableGlobalVirtualStore, dependency build scripts now see the workspace root'snode_modules/.bin, as they do with a local virtual store. Apostinstallscript that runsnodefinds the Node.js installed bydevEngines.runtimeand no longer fails with "command not found" on machines without a system Node.js #15652. Dependency build scripts also see the bins of privately hoisted dependencies.Dependency install scripts now find the node-gyp bundled with pnpm when pnpm runs through a symlink, such as
node_modules/.bin/pnpmor thepnpmthatnpm install -g pnpmlinks. They used to fail withnode-gyp: command not foundon macOS #15694.pnpm runand lifecycle scripts now setnpm_config_node_gypto the bundlednode-gypentry point. Tools that read the variable resolve the samenode-gyppnpm builds with. Annpm_config_node_gypvalue the environment already sets is kept as is #16270.Scripts now see the
npm_commandenvironment variable that npm sets. It holdsrun-scriptwhen the command runs a script, and the command's own name otherwise #16265.Commands run from a POSIX shell through a dependency's own
node_modules/.bin, such asnode_modules/vite/node_modules/.bin/esbuild, no longer fail withMODULE_NOT_FOUND#10189.pnpx --versionand `pnpm dConfiguration
📅 Schedule: (in timezone Asia/Tokyo)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.